package cn.designmode.adapter;

public class MovieAdaptee implements Adaptee {

    @Override
    public Media specificRequest(Object o) {
        Movie movie = (Movie) o;
        Media media = new Media();
        media.setName(movie.getTitle());
        media.setCreator(movie.getDirector());
        media.setReleaseDate(movie.getReleaseDate());
        return media;
    }

}
